package com.qikecn.utils;

import com.qikecn.api.common.Contents;
import com.qikecn.api.model.Config;

public class ConfigUtil {

	public static String getConfigValue(String key){
		String result = "";
		Config config = Config.dao.findFirstByCache(Contents.MYCACHE, "config_" + key, "select * from "+Contents.TAB_PREFIX+"config where config_key='"+key+"'");
		result = config != null ? config.getConfigValue() : "";
		return result;
	}
	
}
